var echarts = require('echarts');
export default function (data) { // 1 series
    return {
        Option: {
            legend: {
                data: ['链接设备', '未连接设备']
            },
            xAxis: {
                data: ['2018.01', '2018.02', '2018.03', '2018.04', '2018.05', '2018.06', '2018.07', '2018.08', '2018.09', '2018.10'],
                name: '月份'
            },
            yAxis: {
                min: 0,
                max: 600,
                interval: 100,
                name: ''
            },
            series: [{
                type: 'bar',
                stack: '1',
                name: '链接设备',
                barWidth: 40,
                itemStyle: {
                    normal: {
                        color: '#56d9fe'
                    }
                },
                // barWidth:'30%',
                data: [220, 182, 191, 234, 290, 330, 200, 240, 250, 235]
            },
            {
                type: 'bar',
                stack: '1',
                name: '未连接设备',
                barWidth: 40,
                itemStyle: {
                    normal: {
                        color: '#a3a1fb'
                    }
                },
                data: [220, 182, 191, 234, 290, 330, 191, 234, 290, 330]
            }
            ]
        }
    }
}
